﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LabMS.Model
{
    public class CourseJson
    {
        private int id;

        public int ID
        {
            get { return id; }
            set { id = value; }
        }
        private string code;
        //课程编号
        public string Code
        {
            get { return code; }
            set { code = value; }
        }
        private string name;
        //课程名称
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string enName;
        //课程英文名
        public string EnglishName
        {
            get { return enName; }
            set { enName = value; }
        }
        private int hour;
        //实验学时
        public int Hour
        {
            get { return hour; }
            set { hour = value; }
        }
        private int course_house;
        //课时
        public int CourseHouse
        {
            get { return course_house; }
            set { course_house = value; }
        }


        private string type;
        //课程属性
        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        private List<MajorJson> majors = new List<MajorJson>();
        //专业
        public List<MajorJson> Majors
        {
            get { return majors; }
            set { majors = value; }
        }

    }
    //构建JSON类
    public class MajorJson
    {
        private int id;
        private string name;
        //专业名称
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public int ID { get { return id; } set { id = value; } }
    }
}
